-- @Author: baidwwy
-- @Date:   2023-11-28 09:34:46
-- @Last Modified by:   baidwwy
-- @Last Modified time: 2023-12-19 13:34:06
--======================================================================--
-- @作者: GGE研究群: 342119466
-- @创建时间:   2018-03-03 02:34:19
-- @Last Modified time: 2023-08-21 22:25:11
--======================================================================--
--local dx = {
--	{"高级神佑复生","高级夜战","高级必杀","高级感知","高级连击","高级防御","高级强力","高级反震","高级再生","高级敏捷","高级反击","高级飞行","嗜血追击","剑荡四方","驱怪"},
--	{"高级慧根","高级魔之心","幸运","高级幸运","高级法术暴击","高级法术连击","高级感知","魔之心","招架","高级招架","高级驱鬼","法术暴击","慧根","高级慧根","高级法术抵抗"}
--}

local floor = math.floor
local ceil  = math.ceil
local jnsss = require("script/显示类/技能")
local random = 取随机数
local insert = table.insert
local cfs    = 删除重复
local rand   = 引擎.取随机小数
local 五行_ = {"金","木","水","火","土"}
local 内存类_宝宝 = class()

function 内存类_宝宝:初始化()
	self.参战等级 = 0
	self.等级 = 0
	self.名称 = 0
	self.模型 = 0
	self.气血 = 0
	self.魔法 = 0
	self.攻击 = 0
	self.防御 = 0
	self.速度 = 0
	self.灵力 = 0
	self.体质 = 0
	self.魔力 = 0
	self.力量 = 0
	self.耐力 = 0
	self.敏捷 = 0
	self.潜力 = 5
	self.忠诚 = 100
	self.修炼 = {攻击修炼={0,0},法术修炼={0,0},防御修炼={0,0},速度修炼={0,0}}
	self.成长 = 0
	self.装备 = {}
	self.技能 = {}
	self.种类 = ""
	self.五行 = 0
	self.饰品 = nil
	self.双五行 = 0
	self.染色组 = 0
	self.染色方案 = nil
	self.参战信息 = nil
	self.战斗技能 = {}
	self.装备属性 = {
		气血 = 0,
		魔法 = 0,
		命中 = 0,
		伤害 = 0,
		防御 = 0,
		速度 = 0,
		躲避 = 0,
		灵力 = 0,
		体质 = 0,
		魔力 = 0,
		力量 = 0,
		耐力 = 0,
		敏捷 = 0,
		元宵 = 0,
	}
	self.当前经验 = 0
	self.最大经验 = 0
	self.最大气血 = 0
	self.最大魔法 = 0
	self.攻击资质 = 0
	self.防御资质 = 0
	self.体力资质 = 0
	self.法力资质 = 0
	self.速度资质 = 0
	self.躲闪资质 = 0
	self.自动 = nil
	self.默认技能 = nil
end



function 内存类_宝宝:置新对象(模型,类型,宝宝数组)
	self.模型 = 模型
	self.等级 = 0
	self.种类 = 类型
	self.名称 = 模型
	self.攻击资质 = 宝宝数组[1]
	self.防御资质 = 宝宝数组[2]
	self.体力资质 = 宝宝数组[3]
	self.法力资质 = 宝宝数组[4]
	self.速度资质 = 宝宝数组[5]
	self.躲闪资质 = 宝宝数组[6]
	self.技能 = 宝宝数组[8]
	self.成长 = 宝宝数组[7]
	self.参战等级 = 0
	self.五行 = 五行_[random(1,5)]
	for m=1,#self.技能 do
		local w = self.技能[m]
		self.技能[m] = jnsss()
		self.技能[m]:置对象(w,2)
	end
	self.忠诚 = 100
	self.体质 =20
	self.魔力 = 20
	self.力量 = 20
	self.耐力 = 20
	self.敏捷 = 20

end



return 内存类_宝宝